﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class ResourceManagerWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(ResourceManager);
			Utils.BeginObjectRegister(type, L, translator, 0, 18, 0, 0);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadPrefabs", _m_LoadPrefabs);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "loadBytesBuffer", _m_loadBytesBuffer);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadPrefabsAnsc", _m_LoadPrefabsAnsc);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadSptiteAtlas", _m_LoadSptiteAtlas);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadAsset", _m_LoadAsset);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadAssetWithDependenciesEx", _m_LoadAssetWithDependenciesEx);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadAssetWithDependenciesExAnsc", _m_LoadAssetWithDependenciesExAnsc);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadFromLocalUpd", _m_LoadFromLocalUpd);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadFromStreamAsset", _m_LoadFromStreamAsset);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadFromPath", _m_LoadFromPath);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadFromStreamAssetAsync", _m_LoadFromStreamAssetAsync);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadFromLocalUpdAsync", _m_LoadFromLocalUpdAsync);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadFromResource", _m_LoadFromResource);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadFromResourceAsync", _m_LoadFromResourceAsync);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadFromResourceAsyncEx", _m_LoadFromResourceAsyncEx);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadAssetAsync", _m_LoadAssetAsync);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckUpdate", _m_CheckUpdate);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnloadAsset", _m_UnloadAsset);
			
			
			
			
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 1, 6, 6);
			
			
            
			Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "HOT_SUCCESS", _g_get_HOT_SUCCESS);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "NEW_APK", _g_get_NEW_APK);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "VERSION_EQUAL", _g_get_VERSION_EQUAL);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "HAVE_NEW_APK", _g_get_HAVE_NEW_APK);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "DOWN_ERROR", _g_get_DOWN_ERROR);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "NET_ERROR", _g_get_NET_ERROR);
            
			Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "HOT_SUCCESS", _s_set_HOT_SUCCESS);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "NEW_APK", _s_set_NEW_APK);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "VERSION_EQUAL", _s_set_VERSION_EQUAL);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "HAVE_NEW_APK", _s_set_HAVE_NEW_APK);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "DOWN_ERROR", _s_set_DOWN_ERROR);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "NET_ERROR", _s_set_NET_ERROR);
            
			
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					ResourceManager gen_ret = new ResourceManager();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
			}
            return LuaAPI.luaL_error(L, "invalid arguments to ResourceManager constructor!");
            
        }
        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadPrefabs(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                ResourceManager gen_to_be_invoked = (ResourceManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _path = LuaAPI.lua_tostring(L, 2);
                    
                        UnityEngine.Object gen_ret = gen_to_be_invoked.LoadPrefabs( _path );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_loadBytesBuffer(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                ResourceManager gen_to_be_invoked = (ResourceManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _filepath = LuaAPI.lua_tostring(L, 2);
                    
                        byte[] gen_ret = gen_to_be_invoked.loadBytesBuffer( _filepath );
                        LuaAPI.lua_pushstring(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadPrefabsAnsc(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                ResourceManager gen_to_be_invoked = (ResourceManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _path = LuaAPI.lua_tostring(L, 2);
                    System.Action<UnityEngine.Object> _finish = translator.GetDelegate<System.Action<UnityEngine.Object>>(L, 3);
                    
                    gen_to_be_invoked.LoadPrefabsAnsc( _path, _finish );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadSptiteAtlas(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                ResourceManager gen_to_be_invoked = (ResourceManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _path = LuaAPI.lua_tostring(L, 2);
                    
                        UnityEngine.U2D.SpriteAtlas gen_ret = gen_to_be_invoked.LoadSptiteAtlas( _path );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadAsset(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                ResourceManager gen_to_be_invoked = (ResourceManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _path = LuaAPI.lua_tostring(L, 2);
                    
                        UnityEngine.Object gen_ret = gen_to_be_invoked.LoadAsset( _path );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadAssetWithDependenciesEx(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                ResourceManager gen_to_be_invoked = (ResourceManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _assetBundleName = LuaAPI.lua_tostring(L, 2);
                    
                    gen_to_be_invoked.LoadAssetWithDependenciesEx( _assetBundleName );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadAssetWithDependenciesExAnsc(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                ResourceManager gen_to_be_invoked = (ResourceManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _assetBundleName = LuaAPI.lua_tostring(L, 2);
                    
                        System.Collections.IEnumerator gen_ret = gen_to_be_invoked.LoadAssetWithDependenciesExAnsc( _assetBundleName );
                        translator.PushAny(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadFromLocalUpd(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                ResourceManager gen_to_be_invoked = (ResourceManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _assetBundleName = LuaAPI.lua_tostring(L, 2);
                    
                        UnityEngine.AssetBundle gen_ret = gen_to_be_invoked.LoadFromLocalUpd( _assetBundleName );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadFromStreamAsset(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                ResourceManager gen_to_be_invoked = (ResourceManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _assetBundleName = LuaAPI.lua_tostring(L, 2);
                    
                        UnityEngine.AssetBundle gen_ret = gen_to_be_invoked.LoadFromStreamAsset( _assetBundleName );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadFromPath(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                ResourceManager gen_to_be_invoked = (ResourceManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _path = LuaAPI.lua_tostring(L, 2);
                    
                        UnityEngine.AssetBundle gen_ret = gen_to_be_invoked.LoadFromPath( _path );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadFromStreamAssetAsync(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                ResourceManager gen_to_be_invoked = (ResourceManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _assetBundleName = LuaAPI.lua_tostring(L, 2);
                    
                        UnityEngine.AssetBundleCreateRequest gen_ret = gen_to_be_invoked.LoadFromStreamAssetAsync( _assetBundleName );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadFromLocalUpdAsync(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                ResourceManager gen_to_be_invoked = (ResourceManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _assetBundleName = LuaAPI.lua_tostring(L, 2);
                    
                        UnityEngine.AssetBundleCreateRequest gen_ret = gen_to_be_invoked.LoadFromLocalUpdAsync( _assetBundleName );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadFromResource(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                ResourceManager gen_to_be_invoked = (ResourceManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _path = LuaAPI.lua_tostring(L, 2);
                    
                        UnityEngine.Object gen_ret = gen_to_be_invoked.LoadFromResource( _path );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadFromResourceAsync(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                ResourceManager gen_to_be_invoked = (ResourceManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _path = LuaAPI.lua_tostring(L, 2);
                    System.Action<UnityEngine.Object> _finish = translator.GetDelegate<System.Action<UnityEngine.Object>>(L, 3);
                    
                        System.Collections.IEnumerator gen_ret = gen_to_be_invoked.LoadFromResourceAsync( _path, _finish );
                        translator.PushAny(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadFromResourceAsyncEx(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                ResourceManager gen_to_be_invoked = (ResourceManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _path = LuaAPI.lua_tostring(L, 2);
                    
                        UnityEngine.ResourceRequest gen_ret = gen_to_be_invoked.LoadFromResourceAsyncEx( _path );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadAssetAsync(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                ResourceManager gen_to_be_invoked = (ResourceManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _path = LuaAPI.lua_tostring(L, 2);
                    System.Action<UnityEngine.Object> _finish = translator.GetDelegate<System.Action<UnityEngine.Object>>(L, 3);
                    
                        System.Collections.IEnumerator gen_ret = gen_to_be_invoked.LoadAssetAsync( _path, _finish );
                        translator.PushAny(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_CheckUpdate(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                ResourceManager gen_to_be_invoked = (ResourceManager)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& translator.Assignable<System.Action<int>>(L, 2)&& translator.Assignable<System.Action<ulong, ulong>>(L, 3)) 
                {
                    System.Action<int> _finishCallFunc = translator.GetDelegate<System.Action<int>>(L, 2);
                    System.Action<ulong, ulong> _onProgressCallFunc = translator.GetDelegate<System.Action<ulong, ulong>>(L, 3);
                    
                    gen_to_be_invoked.CheckUpdate( _finishCallFunc, _onProgressCallFunc );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& translator.Assignable<System.Action<int>>(L, 2)) 
                {
                    System.Action<int> _finishCallFunc = translator.GetDelegate<System.Action<int>>(L, 2);
                    
                    gen_to_be_invoked.CheckUpdate( _finishCallFunc );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1) 
                {
                    
                    gen_to_be_invoked.CheckUpdate(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to ResourceManager.CheckUpdate!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UnloadAsset(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                ResourceManager gen_to_be_invoked = (ResourceManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.UnloadAsset(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_HOT_SUCCESS(RealStatePtr L)
        {
		    try {
            
			    LuaAPI.xlua_pushinteger(L, ResourceManager.HOT_SUCCESS);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_NEW_APK(RealStatePtr L)
        {
		    try {
            
			    LuaAPI.xlua_pushinteger(L, ResourceManager.NEW_APK);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_VERSION_EQUAL(RealStatePtr L)
        {
		    try {
            
			    LuaAPI.xlua_pushinteger(L, ResourceManager.VERSION_EQUAL);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_HAVE_NEW_APK(RealStatePtr L)
        {
		    try {
            
			    LuaAPI.xlua_pushinteger(L, ResourceManager.HAVE_NEW_APK);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_DOWN_ERROR(RealStatePtr L)
        {
		    try {
            
			    LuaAPI.xlua_pushinteger(L, ResourceManager.DOWN_ERROR);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_NET_ERROR(RealStatePtr L)
        {
		    try {
            
			    LuaAPI.xlua_pushinteger(L, ResourceManager.NET_ERROR);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_HOT_SUCCESS(RealStatePtr L)
        {
		    try {
                
			    ResourceManager.HOT_SUCCESS = LuaAPI.xlua_tointeger(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_NEW_APK(RealStatePtr L)
        {
		    try {
                
			    ResourceManager.NEW_APK = LuaAPI.xlua_tointeger(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_VERSION_EQUAL(RealStatePtr L)
        {
		    try {
                
			    ResourceManager.VERSION_EQUAL = LuaAPI.xlua_tointeger(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_HAVE_NEW_APK(RealStatePtr L)
        {
		    try {
                
			    ResourceManager.HAVE_NEW_APK = LuaAPI.xlua_tointeger(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_DOWN_ERROR(RealStatePtr L)
        {
		    try {
                
			    ResourceManager.DOWN_ERROR = LuaAPI.xlua_tointeger(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_NET_ERROR(RealStatePtr L)
        {
		    try {
                
			    ResourceManager.NET_ERROR = LuaAPI.xlua_tointeger(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
		
		
		
		
    }
}
